import { defineConfig } from 'vitepress'

export default defineConfig({
  title: "Aloo Tools",
  description: "一个具有实用工具的TypeScript库",
  themeConfig: {
    logo: '/logo.png',
    nav: [
      { text: '首页', link: '/' },
      { text: '指南', link: '/guide/' },
      { text: 'API', link: '/api/' },
    ],
    sidebar: {
      '/guide/': [
        {
          text: '介绍',
          items: [
            { text: '入门指南', link: '/guide/' },
            { text: '安装', link: '/guide/installation' },
          ]
        }
      ],
      '/api/': [
        {
          text: 'API参考',
          items: [
            { text: '概览', link: '/api/' },
            { text: '字符串工具', link: '/api/string' },
            { text: '数字工具', link: '/api/number' },
            { text: '数组工具', link: '/api/array' },
            { text: '对象工具', link: '/api/object' },
            { text: '日期工具', link: '/api/date' },
          ]
        }
      ]
    },
    socialLinks: [
      { icon: 'github', link: 'https://github.com/yourusername/aloo-tools' }
    ],
    footer: {
      message: '基于MIT许可发布。',
      copyright: '版权所有 © ' + new Date().getFullYear()
    }
  }
});